'''
@Author: your name
@Date: 2020-03-25 20:33:24
@LastEditTime: 2020-03-25 21:43:44
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: \giee\learn_python\爬虫\爬虫基础\练习项目\selenium练习.py
'''
"""
yuan
"""

from selenium import webdriver

def main():

    # 构造浏览器
    chrome = webdriver.Chrome()

    # 访问
    chrome.get('https://www.xsnvshen.com/album/32246')

    # # 保存当前屏幕的截图
    # chrome.save_screenshot("截图.png")

    # 网页源码
    html = chrome.page_source
    print(html)

    # 退出浏览器
    chrome.quit()




if __name__ == "__main__":
    main()